CC:=gcc
##01_create
create : 01_create.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@
##02_sum_sqr
# sum_sqr : 02_sum_sqr.c
# 	-$(CC) $^ -o $@
# 	-./$@
# 	-rm $@
##02_sum_sqr_thread
sum_sqr : 02_sum_sqr_thread.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@
##03_cancel
cancel : 03_cancel.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@
#04_race_condition
# race_condition: 04_race_condition.c
# 	-$(CC) $^ -o $@
# 	-./$@
# 	-rm $@
#05_race_condition_lock
race_condition: 05_race_condition_lock.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

#06_mqueue_test
mqueue_test: 06_mqueue_test.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@